Alignment: A Guide to Not Being a Mess

Alignment is key to a well-designed website. Without it, your site looks like a hot mess.

Justifying Your Content

Justify your text with the following code:

				justify-content: space-between;
			

Centering Your Elements

Center your elements with the following code:

				margin: 0 auto;
			

Flexbox: The Ultimate Alignment Tool

Flexbox is your friend. It's like having a personal alignment coach.

Use the following code to create a flexbox:

			display: flex;
			flex-direction: row;